using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ERP.RBAC.Dto
{
    /// <summary>
    /// 分配角色请求DTO
    /// </summary>
    public class AssignRolesDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Required(ErrorMessage = "用户ID不能为空")]
        [Range(1, int.MaxValue, ErrorMessage = "无效的用户ID")]
        public int UserId { get; set; }

        /// <summary>
        /// 角色ID列表
        /// </summary>
        [Required(ErrorMessage = "角色列表不能为空")]
        public List<int> RoleIds { get; set; }
    }
} 